package com.example.pojo.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;

/**
 * @author crt
 */
@Data
public class TrendsDto {

    @NotNull(message = "userId不能为空")
    private Integer userId;

    @NotBlank(message = "帖子标题不能为空")
    private String trendsTitle;

    @NotBlank(message = "帖子内容不能为空")
    private String trendsContent;

    @NotNull(message = "帖子文件不能为空")
    private List<Integer> fileIdList;

    private List<Integer> tagIdList;

}
